package com.cow.pojo;

import java.util.ArrayList;
import java.util.List;

public class SeedExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SeedExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeedIdIsNull() {
            addCriterion("seed_id is null");
            return (Criteria) this;
        }

        public Criteria andSeedIdIsNotNull() {
            addCriterion("seed_id is not null");
            return (Criteria) this;
        }

        public Criteria andSeedIdEqualTo(String value) {
            addCriterion("seed_id =", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotEqualTo(String value) {
            addCriterion("seed_id <>", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdGreaterThan(String value) {
            addCriterion("seed_id >", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdGreaterThanOrEqualTo(String value) {
            addCriterion("seed_id >=", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLessThan(String value) {
            addCriterion("seed_id <", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLessThanOrEqualTo(String value) {
            addCriterion("seed_id <=", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLike(String value) {
            addCriterion("seed_id like", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotLike(String value) {
            addCriterion("seed_id not like", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdIn(List<String> values) {
            addCriterion("seed_id in", values, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotIn(List<String> values) {
            addCriterion("seed_id not in", values, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdBetween(String value1, String value2) {
            addCriterion("seed_id between", value1, value2, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotBetween(String value1, String value2) {
            addCriterion("seed_id not between", value1, value2, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedNameIsNull() {
            addCriterion("seed_name is null");
            return (Criteria) this;
        }

        public Criteria andSeedNameIsNotNull() {
            addCriterion("seed_name is not null");
            return (Criteria) this;
        }

        public Criteria andSeedNameEqualTo(String value) {
            addCriterion("seed_name =", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameNotEqualTo(String value) {
            addCriterion("seed_name <>", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameGreaterThan(String value) {
            addCriterion("seed_name >", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameGreaterThanOrEqualTo(String value) {
            addCriterion("seed_name >=", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameLessThan(String value) {
            addCriterion("seed_name <", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameLessThanOrEqualTo(String value) {
            addCriterion("seed_name <=", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameLike(String value) {
            addCriterion("seed_name like", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameNotLike(String value) {
            addCriterion("seed_name not like", value, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameIn(List<String> values) {
            addCriterion("seed_name in", values, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameNotIn(List<String> values) {
            addCriterion("seed_name not in", values, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameBetween(String value1, String value2) {
            addCriterion("seed_name between", value1, value2, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedNameNotBetween(String value1, String value2) {
            addCriterion("seed_name not between", value1, value2, "seedName");
            return (Criteria) this;
        }

        public Criteria andSeedImgIsNull() {
            addCriterion("seed_img is null");
            return (Criteria) this;
        }

        public Criteria andSeedImgIsNotNull() {
            addCriterion("seed_img is not null");
            return (Criteria) this;
        }

        public Criteria andSeedImgEqualTo(String value) {
            addCriterion("seed_img =", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgNotEqualTo(String value) {
            addCriterion("seed_img <>", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgGreaterThan(String value) {
            addCriterion("seed_img >", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgGreaterThanOrEqualTo(String value) {
            addCriterion("seed_img >=", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgLessThan(String value) {
            addCriterion("seed_img <", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgLessThanOrEqualTo(String value) {
            addCriterion("seed_img <=", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgLike(String value) {
            addCriterion("seed_img like", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgNotLike(String value) {
            addCriterion("seed_img not like", value, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgIn(List<String> values) {
            addCriterion("seed_img in", values, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgNotIn(List<String> values) {
            addCriterion("seed_img not in", values, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgBetween(String value1, String value2) {
            addCriterion("seed_img between", value1, value2, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedImgNotBetween(String value1, String value2) {
            addCriterion("seed_img not between", value1, value2, "seedImg");
            return (Criteria) this;
        }

        public Criteria andSeedTypeIsNull() {
            addCriterion("seed_type is null");
            return (Criteria) this;
        }

        public Criteria andSeedTypeIsNotNull() {
            addCriterion("seed_type is not null");
            return (Criteria) this;
        }

        public Criteria andSeedTypeEqualTo(String value) {
            addCriterion("seed_type =", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeNotEqualTo(String value) {
            addCriterion("seed_type <>", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeGreaterThan(String value) {
            addCriterion("seed_type >", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeGreaterThanOrEqualTo(String value) {
            addCriterion("seed_type >=", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeLessThan(String value) {
            addCriterion("seed_type <", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeLessThanOrEqualTo(String value) {
            addCriterion("seed_type <=", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeLike(String value) {
            addCriterion("seed_type like", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeNotLike(String value) {
            addCriterion("seed_type not like", value, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeIn(List<String> values) {
            addCriterion("seed_type in", values, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeNotIn(List<String> values) {
            addCriterion("seed_type not in", values, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeBetween(String value1, String value2) {
            addCriterion("seed_type between", value1, value2, "seedType");
            return (Criteria) this;
        }

        public Criteria andSeedTypeNotBetween(String value1, String value2) {
            addCriterion("seed_type not between", value1, value2, "seedType");
            return (Criteria) this;
        }

        public Criteria andMatureImgIsNull() {
            addCriterion("mature_img is null");
            return (Criteria) this;
        }

        public Criteria andMatureImgIsNotNull() {
            addCriterion("mature_img is not null");
            return (Criteria) this;
        }

        public Criteria andMatureImgEqualTo(String value) {
            addCriterion("mature_img =", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgNotEqualTo(String value) {
            addCriterion("mature_img <>", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgGreaterThan(String value) {
            addCriterion("mature_img >", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgGreaterThanOrEqualTo(String value) {
            addCriterion("mature_img >=", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgLessThan(String value) {
            addCriterion("mature_img <", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgLessThanOrEqualTo(String value) {
            addCriterion("mature_img <=", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgLike(String value) {
            addCriterion("mature_img like", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgNotLike(String value) {
            addCriterion("mature_img not like", value, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgIn(List<String> values) {
            addCriterion("mature_img in", values, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgNotIn(List<String> values) {
            addCriterion("mature_img not in", values, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgBetween(String value1, String value2) {
            addCriterion("mature_img between", value1, value2, "matureImg");
            return (Criteria) this;
        }

        public Criteria andMatureImgNotBetween(String value1, String value2) {
            addCriterion("mature_img not between", value1, value2, "matureImg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}